package eteam.aps.controller;

import eteam.aps.common.R;
import eteam.aps.common.exceptions.AuthException;
import eteam.aps.model.vo.ParamListVo;
import eteam.aps.model.vo.ParamVo;
import eteam.aps.model.vo.ProductParamVo;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.List;
import java.util.Set;

/**
 * 产品参数控制器
 *
 * @author WMT
 */
public interface IProductParamController {

    @PostMapping("/pep/selectAll/{fDtlId}")
    R<List<ProductParamVo>> selectAll(@PathVariable String fDtlId)  throws Exception, AuthException;

    @PostMapping("/pep/delete/{fId}")
    R<Integer> delete(@PathVariable String fId) throws Exception,AuthException;

    @PostMapping("/pep/selectpardd")
    R<Set<ParamListVo>> selectParDd() throws Exception,AuthException;

    @PostMapping("/pep/selectDdInfo/{paramCode}")
    R<Set<ParamVo>> selectDdInfo(@PathVariable String paramCode) throws Exception,AuthException;
}
